package csdn.chouxiang.li04;

public class Monkey extends Animal implements IJympAble1,IJumpAble2{
    private String name;

    public Monkey(){}
    public Monkey(String color,int age,String name){
        super(color,age);
        this.name=name;
    }

    public void eat(){
        System.out.println(name+"吃香蕉");
    }
    public void sleep(){
        System.out.println(name+"倒挂着睡觉");
    }
    public void jump(){
        System.out.println(name+"跳火圈");
    }
    public void cycle(){
        System.out.println(name+"骑自行车");
    }
    @Override
    public String toString() {
        return "Monkey [name=" + name + ", getColor()=" + getColor() + ", getAge()=" + getAge() + "]";
    }

    
}
